


export default class BatchAddModalMain {
    constructor(c) {
        this.c = c;
    }

    setModalHeight = () => {
        if(window.getComputedStyle) {
            let modal = document.querySelector('.batchModal').querySelector('.u-modal-dialog');
            let height = window.getComputedStyle(modal).height.replace('px', '');
            
            this.c.setState({
                modalHeight: `${height}px`
            });
        }
    }
}